package rsee.com;
import com.video.h264.GlobalUtil;

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;


public class KeySetting extends Activity
{
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setTheme(android.R.style.Theme_Black_NoTitleBar_Fullscreen);

        getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
        getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
        
		this.setContentView(R.layout.key);
	}
	
	@Override
	protected void onResume() {
		super.onResume();
		if(GlobalUtil.OVSIAlarmConfig){
		ActivityList activityList = new ActivityList();
		activityList.put(this, 0);
		}
	}
	
    @Override
	protected void onDestroy() {
        super.onDestroy();
		if(GlobalUtil.OVSIAlarmConfig){
			ActivityList activityList = new ActivityList();
			activityList.remove(this);
			}
    }
	
}